package cn.com.eado.uwallpaper;

import android.app.Application;
import android.content.Context;

import java.net.CookieHandler;
import java.net.CookiePolicy;

/**
 * Created by lcy on 2015/11/10.
 */
public class MyApplication extends Application{
    private static Context context;
    public void onCreate() {
        super.onCreate();
        // enable cookies
        context=getApplicationContext();
        java.net.CookieManager cookieManager = new java.net.CookieManager();
        cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL);
        CookieHandler.setDefault(cookieManager);
    }
    public static Context getContext() {
        context.toString();
        return context;
    }
}

